﻿using System;
using System.ComponentModel.DataAnnotations;

namespace LJSheng.Data
{
    /// <summary>
    /// 管理员
    /// </summary>
    public class LJSheng
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public Guid gid { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime addtime { get; set; }

        /// <summary>
        /// 帐号
        /// </summary>
        [Required, MaxLength(50)]
        public string account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required, MaxLength(50)]
        public string pwd { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        [StringLength(20)]
        public string real_name { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        [StringLength(11)]
        public string mobile { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public int sex { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        [StringLength(50)]
        public string picture { get; set; }

        /// <summary>
        /// 省份
        /// </summary>
        [StringLength(20)]
        public string province { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        [StringLength(20)]
        public string city { get; set; }
        /// <summary>
        /// 区域
        /// </summary>
        [StringLength(20)]
        public string area { get; set; }

        /// <summary>
        /// 管理员权限[管理员,锁定]
        /// </summary>
        [StringLength(20)]
        public string qx { get; set; }

        /// <summary>
        /// 最后登录标识
        /// </summary>
        [Required]
        [StringLength(50)]
        public string loginid { get; set; }

        /// <summary>
        /// 折扣
        /// </summary>
        public double zk { get; set; }

        /// <summary>
        /// 余额
        /// </summary>
        public double rmb { get; set; }

        /// <summary>
        /// 用户备注
        /// </summary>
        [StringLength(2000)]
        public string explain { get; set; }
    }
}
